Challenge: Techniques of Prompting
Evaluate your concepts by solving challenges for different prompting techniques.
We'll cover the following
We've created three challenges that can be solved using one of the three prompt engineering techniques. Go through the scenario and task details and implement a prompting technique to create a prompt that results in the most accurate and relevant answer.
Extracting product specifications#
Scenario: You are a salesperson at an electronics store. A customer is looking for a smartphone with the given product description. You need to extract the relevant information from the text and format it for an easy database lookup.
Product description: The smartphone is equipped with an exceptional 48 MP camera that captures stunning photos and videos with remarkable clarity and detail. With a battery life of up to 48 hours, you can confidently go through your day without worrying about running out of power. The ample storage space of 128 GB ensures you have plenty of room for your apps, photos, and files. Coupled with 8 GB of RAM, this smartphone offers smooth multitasking and responsive performance. The immersive 7-inch display brings your content to life with vibrant colors and sharp visuals.
Task: Create a prompt that extracts the smartphone specifications for the given text. The prompt should generate the output in a standard CSV format which can be used for database lookups. Here's an example of what the output may look like:
Output |
camera,storage,ram,battery,display 24,64,8,56,6.5 |
Write your prompt here.
Planning a vacation#
Scenario: You are planning a vacation to an exotic location. You want to gather information about the best time to visit, popular tourist attractions, and local customs.
Task: Create a prompt to obtain the required information without explicitly mentioning the destination. The prompt should help you gather details about the ideal time to visit, must-visit tourist attractions, and cultural practices.
Write your prompt here.
Answering a customer inquiry#
Scenario: You are a customer service agent tasked with kindly responding to customer inquiries at a clothing store. The customer has asked you how they can exchange something for a purchase they made.
Customer inquiry: I just bought a T-shirt from your Max collection on March 15th. I saw it was on discount, so I bought a shirt that was originally
at off. I saw that you have a new discount for shirts at . I'm wondering if I can return the shirt and have enough store credit to buy two of the shirts.
Here are some instructions you need to keep in mind before responding:
Returns are allowed within 30 days.
Today's date is March 29th.
There is currently a
discount on all shirts.
Task: Using the given information, create a prompt that generates a response you can send to the customer to answer their query. You should avoid mentioning any policies except for the ones addressed above.
Write your prompt here.
Try it yourself#
You can use the widget below to see the output for your prompts:
Quiz: Techniques of Prompting
Solution: Techniques of Prompting